
from flask import Flask, render_template, Response, request
import json

app = Flask(__name__)


@app.route("/webhook", methods=['POST','GET'])
def clients_connect():
    if request.method == 'POST':
        data = request.get_data()
        print(data)
        # j_data = json.loads(data)
        # print(j_data)
    elif request.method == 'GET':
        print(1)
    return ""


if __name__ == "__main__":
    # app.debug = True
    app.run(host='192.168.43.8',port=8099)